package com.travelcloud.config.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 扩展令牌增加是否值班参数
 *
 * @author zhongyong
 * @date 20180808
 * @since v1.0
 */
public class MyUsernamePasswordToken extends UsernamePasswordToken {

    /**
     * onDuty 是否值班
     */
    private boolean onDuty;

    public MyUsernamePasswordToken(String username, String password, boolean onDuty) {
        super(username, password);
        this.onDuty = onDuty;
    }

    public boolean getOnDuty() {
        return onDuty;
    }

    public void setOnDuty(boolean onDuty) {
        this.onDuty = onDuty;
    }
}
